-
Notifications
You must be signed in to change notification settings - Fork 509
Better chat notification handling #1970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better chat notification handling #1970
Conversation
PVince81
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 tested, works
Tested by having read and unread messages and I could see the notifications either stay (when unread in the message list) or disappear (when read in the message list). Of course had to wait for notifications to be pulled.
Also confirmed that notifications get cleared when leaving a room.
It shouldn't but I guess it does because of the readmarker? |
Ivansss
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs re-thinking.
Always sending push notifications even when the user is active in a mobile app will generate a weird user experience.
Possibly. But I think this behavior is acceptable. |
|
I've been testing these changes, and there is one fairly minor piece missing; when a message is specifically marked as read, it doesn't actually delete the notification. It is necessary to actually exit the conversation and re-enter it in order for the notification(s) to be deleted. For example to reproduce; Text chat conversation is open between two users in browsers, User1 sends a message to User2. User1 sees the "single check" mark that the message has been sent, User2 receives a notification (possibly on phone) and the message appears at the bottom of the chat window. User2 scrolls down to read the message, marking it as read, User1 now sees the "double check" mark indicating that the message has been read. The notification received by User2 has NOT been dismissed -- it remains. I believe that the event of marking the message actually as read should also trigger the dismissal of the notification. Aside from that, this seems perfect to me. I especially like how mobile notifications continue even if the conversation is open in the browser. |
|
That's a different issue: #5829 |
|
But that commit is not merged, this Pull Request is still open :P |
Yes, that commit is part of THIS PR, which is obviously why I am commenting on it here. |
|
|
I confirm, its annoying.... There really is room for improvement. |
|
Getting the message everywhere is better than nowhere |
|
I'm really sorry to muddy this thread with something everybody probably knows, but how do I apply this fix? Or at least if someone can give me the search terms to find how to do it. I've been told this could fix my notification problems with Nextcloud Talk and I can't see an obvious way to install it. EDIT; Ok, so I've found the Files Changed section. Do I just hunt down the files and edit them with something like Nano, inserting the amended code, or is there a better way? |
|
Hello @DaleJP, https://docs.nextcloud.com/server/latest/admin_manual/issues/applying_patch.html I had an error while applying this patch. Some file not found or something like that, but it seems it works... |
|
Thanks @Marhy172 , I'm stuck at the instruction "download the patch" and even then, I'm not 100% sure in which directory to apply the patch when I have the file. |
|
First of all, I am amateur myself. I use Nextcloud on Raspberry Pi to learn more about internet, networks, Linux, etc. I use dd to backup whole system whenever I make changes I don't fully understand. So consider yourself if it worth to you to follow my steps :) I did it like this:
As I written. I had an error while applying the patch like this. So I am not sure if this is the right way to do it for this patch. But it seems notifications works for me and my friends now. Maybe wait if someone more educated answers you :) |
|
Thanks again @Marhy172 , Thank you so much for your help. I had no idea that patches could work this way. |
Fix #1575